package com.wkbb.common.dto.basic;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class SysFunctionDto implements Serializable {

    /**
     * 编号
     */
    @ApiModelProperty(value = "编号")
    private Long id;

    /**
     * 父ID
     */
    @ApiModelProperty(value = "父ID")
    private Long parentId;

    /**
     * 1模块 2菜单 3按钮
     */
    @ApiModelProperty(value = "1模块 2菜单 3按钮")
    private Short type;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * CRUD值
     */
    @ApiModelProperty(value = "CRUD值")
    private String code;

    /**
     * 链接
     */
    @ApiModelProperty(value = "链接")
    private String url;

    /**
     * 图标链接
     */
    @ApiModelProperty(value = "图标链接")
    private String iconUrl;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Short orders;

    /**
     * 0:无效 1:有效
     */
    @ApiModelProperty(value = "0:无效 1:有效")
    private Boolean status;

    @ApiModelProperty(value = "子功能")
    private List<SysFunctionDto> children;
}
